# name : put+format, Filting in where statement with format
# key : filter.put.format.where.
# contributor: Shuguang Sun
# --
proc format;
  value ${1:fmtname}
    40000-high='High  '
    26000 -<40000='Medium'
    other ='low   ';
run;

where put(${2:var}, $1.) in ('High  ', 'Medium');